<template>
  <div
    v-loading.fullscreen.lock="true"
    element-loading-text="正在进行OAuth2登录..."
    element-loading-background="#2d3a4b"
  ></div>
</template>

<script setup>
import { oauth2Callback } from '@/api/login';
const route = useRoute();
oauth2Callback(route.query).finally(() => {
  location.href = route.query.callback;
});
</script>

<style lang="scss" scoped></style>
